<?php
require_once('Db.php');
require_once('Category.php');
require_once('School.php');
require_once('Answer.php');
require_once('Question.php');
require_once('Form.php');
Db::init();

foreach(Db::fetchAll("SELECT * FROM schools;") as $row)
{
  $update = 'UPDATE schools SET school_hash = "' . (2209+11*$row['school_id']) . '" WHERE school_id = ' . $row['school_id'] . ';';
  echo $update;
  Db::query($update);
  echo " ...OK\n";
}

Db::close();
?>
